package com.woniu.service.impl;

import com.woniu.entity.Power;
import com.woniu.mapper.PowerMapper;
import com.woniu.service.PowerService;
import com.woniu.utils.MyBatisUtil;
import org.apache.ibatis.session.SqlSession;

public class PowerServiceImpl implements PowerService {
    @Override
    public Power selectPowerById(Integer pid) {
         SqlSession sqlSession = MyBatisUtil.getSqlSession();
        PowerMapper mapper = sqlSession.getMapper(PowerMapper.class);
        return mapper.selectPowerById(pid);
    }
}
